/**
 * @file worker.h
 * @author HaoyuWang (136046355@qq.com)
 * @brief 普通工作线程
 * @version 0.1
 * @date 2025-01-24
 * 
 * @copyright Copyright (c) 2025
 * 
 */

#ifndef __WORKER_H__
#define __WORKER_H__

#include "service.h"

class Worker
{
public:
    Worker();
    ~Worker();

    void operator()();

    void SetID(int id);
    int GetID();
    void SetEachNum(int each_num);
    int GetEachNum();

    void CheckAndPutGlobal(std::shared_ptr<Service> srv);

public:
    int id_;
    int each_num_;

};


#endif  // __WORKER_H__
